package org.csu.logistics;

import org.csu.logistics.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;

public class RedisTest {
    @Autowired
    private RedisUtils redisUtils;

    /**
     * 插入缓存数据
     */
    public void set() {
        redisUtils.set("redis_key", "redis_vale");
    }

    /**
     * 读取缓存数据
     */
    public void get() {
        String value = redisUtils.get("name");
        System.out.println(value);
    }

}
